#include <QtTest/QtTest>
#include "../src/cmysig.h"
 class TestQString: public QObject
 {
     Q_OBJECT
 private slots:
     void toUpper();
     void test_sig1();
 };
void TestQString::toUpper()
 {
     QString str = "Hello";
     QVERIFY(str.toUpper() == "HELLO");
     QCOMPARE(str.toUpper(), QString("HELLO"));
 }
 void TestQString::test_sig1()
 {
     CMySig sig1;
     QVERIFY(sig1.getXn() == 0);
     QCOMPARE(sig1.getXn(), 0);
 }
QTEST_MAIN(TestQString)
#include "testqstring.moc"